package com.sims.action;

import com.opensymphony.xwork2.ActionSupport;

public class CountAction extends ActionSupport {
	private int num1;
	private int num2;
	private int result;

	public int getNum1() {
		return num1;
	}

	public void setNum1(int num1) {
		this.num1 = num1;
	}

	public int getNum2() {
		return num2;
	}

	public void setNum2(int num2) {
		this.num2 = num2;
	}

	public int getResult() {
		return result;
	}

	public void setResult(int result) {
		this.result = result;
	}

	public String add() {
		result = num1 + num2;
		return SUCCESS;
	}

	public String minus() {
		result = num1 - num2;
		return SUCCESS;
	}

	public String multiply() {
		result = num1 * num2;
		return SUCCESS;
	}

	public String divide() {
		result = num1 / num2;
		return SUCCESS;
	}
}
